package com.ysx.controller;

import com.ysx.service.DemoFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.alibaba.nacos.ribbon.NacosServer;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.net.URI;
import java.util.Map;

/**
 * @author yyj
 * @date 2019/5/18
 */
@RestController
public class ConsumerController {

    @Autowired
    private DemoFeignService feignService;

    @GetMapping("test")
    public String test(String name) {
        return feignService.test(name);
    }
}
